﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Controls;
using InteControlSys.ViewModel;
using System.Windows;
namespace InteControlSys.Template
{
    public class ChildWindowTemplateSelector : DataTemplateSelector
    {
        public override DataTemplate SelectTemplate(object item, DependencyObject container)
        {
            DataTemplate template = null;
            FrameworkElement element = container as FrameworkElement;
            if (item is ArriveNodeViewModel)
            {
                template = element.FindResource("NewWorkflow") as DataTemplate;
            }


            return template;
        }
    }
}
